﻿using System.Collections.Generic;
using Furion.CMS.Domain;
using Newtonsoft.Json;

namespace Furion.CMS.Application.Dto
{
    /// <summary>
    /// 登录记录详情数据传输对象
    /// </summary>
    public class LoginRecordDetailDto : LoginRecordDto
    {
        [JsonIgnore]
        public override string Result { get => base.Result; set => base.Result = value; }
        /// <summary>
        /// 提交数据
        /// </summary>
        public IDictionary<string, object> PostData { get; set; }
        /// <summary>
        /// 用户代理
        /// </summary>
        public string UserAgent { get; set; }
        /// <summary>
        /// 内部异常记录
        /// </summary>
        public InnerExceptionRecord InnerException { get; set; }

        /// <summary>
        /// 是否存在通行证
        /// </summary>
        public bool HasPassport { get; set; }
        /// <summary>
        /// 通行证类型
        /// </summary>
        public string PassportType { get; set; }
        /// <summary>
        /// 通行证对应用户
        /// </summary>
        public UserDto PassportUser { get; set; }
        /// <summary>
        /// 登录方式
        /// </summary>
        public string Method { get; set; }
    }
}
